<?php
include "../librari/koneksi.php";
$id=$_POST['TxtKode'];
$name=$_POST['Txtname'];
$pass=$_POST['Txtpass'];
//update data
$sql = " UPDATE administrator SET nmAdmin='".$name."', passwdAdmin='".$pass."' WHERE idAdmin=".$id;

mysql_query($sql);

 echo "<script language='JavaScript'>document.location='admin.php?id=$id';
alert('Sukses. Klik OK!');
 </script>";
	
?>
